package com.weipai.springboot.module.service;

import com.weipai.springboot.model.Artisan;
import com.weipai.springboot.model.Customer;
import com.weipai.springboot.model.api.Response;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/09 16:22
 * 
 * 技工
 */
public interface ArtisanService {
    
    //技工注册
    Response save(Artisan artisan);

    //分页查询
    List<Map<String, Object>> selectAllByDel(int i, String search, String sort, String way, String isAudit,String demandCategoryId);

    //查询技工详情
    Response getArtisanById(String id);

    //删除
    Response deleteById(String id);

    //批量删除
    Response batchDeleteById(String[] id);

    //技工的审核
    Response changeStatus(String id, Integer status);

    //修改技工资料
    Response update(Artisan artisan);

    //首页推荐技工
    Response recommendArtisan(String city);

    Response changeIsAudit(String id, Integer isAudit);

    //通过customerId    ----------查询技工详情---------技工申请页面
    Response getArtisanByCustomerId();

    Response getArtisanByCustomer(String customerId);
}
